package com.wesley.growth.spring.qz;

import com.qz.lims.report.office.core.ExcelFieldReader;
import com.qz.lims.report.office.core.ExcelFieldWriter;
import com.qz.lims.report.office.core.WordFieldReader;
import com.qz.lims.report.office.core.WordFieldWriter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * QzController
 *
 * @author WangPanYong
 * @since 2022/05/21 10:09
 */
@RestController
@RequestMapping("/qz")
public class QzController {

    @Autowired(required = false)
    WordFieldReader wordFieldReader;

    @Autowired(required = false)
    ExcelFieldReader excelFieldReader;

    @Autowired(required = false)
    WordFieldWriter wordFieldWriter;

    @Autowired(required = false)
    ExcelFieldWriter excelFieldWriter;

    @GetMapping(value = "/office")
    public String helloWorld(@RequestParam(required = false, defaultValue = "haha") String msg) {
        return "Hello, Qz ! " + msg;
    }

}
